package com.taxi.management.dao;

import com.taxi.management.entity.OrderDetailsEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderDetailsDao {
    List<OrderDetailsEntity> getAllOrder();

    OrderDetailsEntity getOrderById(@Param("id") int id);

    int addOrder(@Param("order") OrderDetailsEntity order);

    int updateOrder(@Param("order") OrderDetailsEntity order);

    int deleteOrder(@Param("id") int id);

    List<OrderDetailsEntity> getOrderByPage(
            @Param("username") String username,
            @Param("start") int start,
            @Param("limit") int limit
    );
}




